const path = require('path');

let targetPath = path.resolve(__dirname + './path模块.js')
console.log('targetPath',targetPath)
console.log(path.parse(targetPath))
//{
// root: 'C:\\',
//     dir: 'C:\\Users\\Administrator\\Desktop\\摘要\\node学习\\node学习\\path模块.',
//     base: 'path模块.js',
//     ext: '.js',
//     name: 'path模块'
// }
//